from django.contrib import admin
from .models import Material

@admin.register(Material)
class MaterialAdmin(admin.ModelAdmin):
    list_display = ('user', 'material_type', 'upload_time')
    list_filter = ('material_type', 'upload_time')
    search_fields = ('user__username',)